import { UPDATEPAGEMYRESUME } from '../types/pagemyresume'
import { handleActions } from 'redux-actions'

const Schema = {
  showEmpty: false,
  requestOverFirst: false,
  networkerror: false,
  userAvator: '',
  preview: false,
  myMessage: [],

  wantWorkId: '',
  wantWork: [],

  educationInformation: [],
  workExp: [],
  elegantDemeanour: []
}

export default handleActions(
  {
    [UPDATEPAGEMYRESUME](state, action) {
      return {
        ...state,
        ...action.payload
      }
    }
  },
  Schema
)
